package com.kuang.test1;

public class AopUtil {

    public static <T> T getProxy(Class clz){
        CglibProxy cglibProxy = new CglibProxy(clz);
        T proxy = (T)cglibProxy.getProxy();
        return proxy;
    }

    public static <T> T getProxy(Class clz, Runnable before, Runnable after){
        CglibProxy cglibProxy = new CglibProxy(clz, before, after);
        T proxy = (T)cglibProxy.getProxy();
        return proxy;
    }
}
